package com.huangguolin.cloud.mybatis.entity;

import com.huangguolin.cloud.mybatis.annotation.Colums;

import java.io.Serializable;
import java.util.Objects;

public class PtFileEntity implements Serializable {
    /**
     *文件编码
     */
    @Colums("file_uuid")
    private String fileUuid;
    /**
     *父类编码
     */
    @Colums("parent_uuid")
    private String parentUuid = "-1";
    /**
     *文件类型
     */
    @Colums("file_type")
    private Integer fileType = 0;
    /**
     *文件大小
     */
    @Colums("file_capacity")
    private Long fileCapacity;
    /**
     *文件名称
     */
    @Colums("file_name")
    private String fileName;
    /**
     * 用户编码
     */
    @Colums("user-uuid")
    private String userUuid;
    /**
     *文件地址
     */
    @Colums("file_path")
    private String filePath;
    /**
     *备注
     */
    @Colums("remarks")
    private String remarks;
    /**
     *最后修改时间
     */
    @Colums("MODTIME")
    private String modTime;
    /**
     *回收站
     */
    @Colums("DEL_FLAG")
    private String delFlag;

    public String getFileUuid() {
        return fileUuid;
    }

    public void setFileUuid(String fileUuid) {
        this.fileUuid = fileUuid;
    }

    public String getParentUuid() {
        return parentUuid;
    }

    public void setParentUuid(String parentUuid) {
        this.parentUuid = parentUuid;
    }

    public Integer getFileType() {
        return fileType;
    }

    public void setFileType(Integer fileType) {
        this.fileType = fileType;
    }

    public Long getFileCapacity() {
        return fileCapacity;
    }

    public void setFileCapacity(Long fileCapacity) {
        this.fileCapacity = fileCapacity;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getModTime() {
        return modTime;
    }

    public void setModTime(String modTime) {
        this.modTime = modTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "PtFileEntity{" +
                "fileUuid='" + fileUuid + '\'' +
                ", parentUuid='" + parentUuid + '\'' +
                ", fileType=" + fileType +
                ", fileCapacity=" + fileCapacity +
                ", fileName='" + fileName + '\'' +
                ", userUuid='" + userUuid + '\'' +
                ", filePath='" + filePath + '\'' +
                ", remarks='" + remarks + '\'' +
                ", modTime='" + modTime + '\'' +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PtFileEntity that = (PtFileEntity) o;
        return Objects.equals(filePath, that.filePath);
    }

    @Override
    public int hashCode() {
        return Objects.hash(filePath);
    }
}
